<?php

require_once dirname(__FILE__).'/../lib/salarieGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/salarieGeneratorHelper.class.php';

/**
 * salarie actions.
 *
 * @package    sopN
 * @subpackage salarie
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class salarieActions extends autoSalarieActions {
    public function preExecute() {
	$admin = sfConfig::get('app_admin_only', 'no');
	if (($admin) && (!$this->getUser()->getGuardUser()->hasPermission("administration")))
	    return $this->forward("sfGuardAuth", "secure");
	parent::preExecute();
    }
}
